import requests
from config import RunConfig
'''
现场管理-开工检查
'''
def startWork_check_edit(para):
    '''
    开工检查编辑
    :param para:
    :return:
    '''
    response = requests.post(
        url=RunConfig.url + "/startWork/check/edit",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def startWork_check_page(para):
    '''
    开工检查分页
    :param para:
    :return:
    '''
    response = requests.post(
        url=RunConfig.url + "/startWork/check/page?page=&perPage=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def startWork_check_export(para):
    '''
    开工检查导出
    :param para:
    :return:
    '''
    response = requests.get(
        url=RunConfig.url + "startWork/check/export?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def startWork_check_detail(para):
    '''
    开工检查详情
    :param para:
    :return:
    '''
    response = requests.get(
        url=RunConfig.url + "startWork/check/detail?detailId=&exploitMain=&exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response
